import { lazy } from "react";

const router = {
  mode:'history',
  routerList:[
    {
      path:'/',
      to:"/home"
    },
   {
    path:"/home",
    element:lazy(()=>import('../pages/home'))
   },
   {
    path:"/cart",
    element:lazy(()=>import('../pages/cart'))
   },
   {
    path:'/class',
    element:lazy(()=>import('../pages/class'))
   },
   {
    path:'/login',
    element:lazy(()=>import('../pages/login'))
   },
   {
    path:'/my',
    element:lazy(()=>import('../pages/my'))
   }
  ]
}
export default router